
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TeBiz_Basic_MemberInfoManager : BaseManager
    {
        #region private field

        private static TeBiz_Basic_MemberInfoManager manager;
        #endregion

        #region Properties
        
        public Int32 MemberID
        {
            get { return GetConfig<Int32>("MemberID"); }
            set { SetConfig<Int32>("MemberID", value); }
        }
        
        public String MemberMail
        {
            get { return GetConfig<String>("MemberMail"); }
            set { SetConfig<String>("MemberMail", value); }
        }
        
        public String MemberName
        {
            get { return GetConfig<String>("MemberName"); }
            set { SetConfig<String>("MemberName", value); }
        }
        
        public String MemberPWD
        {
            get { return GetConfig<String>("MemberPWD"); }
            set { SetConfig<String>("MemberPWD", value); }
        }
        
        public String ValidCode
        {
            get { return GetConfig<String>("ValidCode"); }
            set { SetConfig<String>("ValidCode", value); }
        }
        
        public Boolean? IsObserved
        {
            get { return GetConfig<Boolean?>("IsObserved"); }
            set { SetConfig<Boolean?>("IsObserved", value); }
        }
        
        public Boolean? IsActive
        {
            get { return GetConfig<Boolean?>("IsActive"); }
            set { SetConfig<Boolean?>("IsActive", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TeBiz_Basic_MemberInfoManager
        /// </summary>
        private TeBiz_Basic_MemberInfoManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TEBIZ_BASIC_MEMBERINFO_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TEBIZ_BASIC_MEMBERINFO_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TeBiz_Basic_MemberInfoManager Instance

        /// <summary>
        /// TeBiz_Basic_MemberInfoManager's Instance
        /// </summary>
        public static TeBiz_Basic_MemberInfoManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TeBiz_Basic_MemberInfoManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
